package bz.yfw.common.loader
{
	import flash.events.Event;
	import flash.net.URLRequest;
	import flash.system.LoaderContext;
	
	import jp.shichiseki.exif.ExifLoader;

	public class CameraExifLoader extends ExifLoader
	{
		public override function load(request:URLRequest, context:LoaderContext=null):void {
			super.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete);
			super.load(request, context);
		}
		
		private function onComplete(event:Event):void {
			super.contentLoaderInfo.removeEventListener(Event.COMPLETE, onComplete);
			dispatchEvent(event);
		}
	}
}